package com.tgpms.web.element.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author newway
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WS_ELEMENT")
@ApiModel(value="WsElement对象", description="D1127 物资验收要素表")
public class WsElement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物资代码")
    @TableId(value = "COMMODITY_NUMBER" , type = IdType.INPUT)
    private String commodityNumber;

    @ApiModelProperty(value = "验收要素编号")
    @TableField(value = "WSE_CODE")
    private String wseCode;

    @ApiModelProperty(value = "验收要素")
    @TableField(value = "ACCEPT_ELEMENT")
    private String acceptElement;

    @ApiModelProperty(value = "现场检验方式")
    @TableField(value = "INSPECTION_METHOD")
    private String inspectionMethod;

    @ApiModelProperty(value = "相关要求出处")
    @TableField(value = "REQUEST_SOURCE")
    private String requestSource;

    @ApiModelProperty(value = "备注")
    @TableField(value = "REMARK")
    private String remark;

    @TableField(value = "MODIFY_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    @TableField(value = "MODIFY_USER")
    private String modifyUser;

    @TableField(value = "INSERT_USER")
    private String insertUser;

    @TableField(value = "INSERT_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date insertDate;

    @TableField(value = "DATA_OWNER")
    private String dataOwner;


}